(function () {
    var loadJson = function () {
        var xhr = new XMLHttpRequest();
        xhr.open('GET', './dir.json', true);
        var json = xhr.send();
        console.log(json);
    };
    loadJson();
})();
